﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ExaminationTT.Model;

namespace ExaminationTT.View.Controls
{
    public partial class RoomsListControl : UserControl
    {
        public RoomsListControl()
        {
            InitializeComponent();
            _dgv_roomsGrid.AutoGenerateColumns = false;
        }

        private IEnumerable<IRoom> _rooms;
        public IEnumerable<IRoom> RoomsListDataSource
        {
            get { return _rooms; }
            set 
            {
                _rooms = value;
                _dgv_roomsGrid.DataSource = value;
            }
        }
    }
}
